package in.muton.edushare.pages.deptpages;

import java.util.Arrays;

import in.muton.edushare.pages.common.NewCoursePanel;

import java.util.Arrays;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;
import com.edushare.common.vo.UserDeptLink;

public class NewCourse extends DeptBase {

	public NewCourse(PageParameters params) {
		super(params);
		prc.check(Arrays.asList(UserDeptLink.PRIMARY_ADMIN));
		add(new NewCoursePanel("courseCreate", getModel(), this));
	}

	@Override
	protected String getActivePage(PageParameters params) {
		return "deptCourse";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
				+ getModel().getObject().getDeptName() + " | New Course | "
				+ ApplicationConstants.APPLICATION_NAME;
	}
}
